# encoding: utf-8
#sdk version: 2.2.1060.13-SNAPSHOT

from sdktest_module.utils.api_base_builder import ApiBaseBuilder, parameter

class ShowApiBuilder(ApiBaseBuilder):
	api_name = "com.demo.liveroom.autotest.AutoLivingViewModel.show"

	@parameter(1,"tv.athena.live.api.activitybar.bean.ActivityBarConfig")
	def config(self, config):
		return self

class ShowPopViewApiBuilder(ApiBaseBuilder):
	api_name = "com.demo.liveroom.autotest.AutoLivingViewModel.showPopView"

	@parameter(1,"String")
	def url(self, url):
		return self

	@parameter(2,"String")
	def configUIJson(self, configUIJson):
		return self

class ClosePopViewApiBuilder(ApiBaseBuilder):
	api_name = "com.demo.liveroom.autotest.AutoLivingViewModel.closePopView"

class ObserveBroadcastDataApiBuilder(ApiBaseBuilder):
	api_name = "com.demo.liveroom.autotest.AutoLivingViewModel.observeBroadcastData"

	@parameter(1,"android.arch.lifecycle.LifecycleOwner")
	def owner(self, owner):
		return self

	@parameter(2,"android.arch.lifecycle.Observer")
	def observer(self, observer):
		return self

class RemoveObserverApiBuilder(ApiBaseBuilder):
	api_name = "com.demo.liveroom.autotest.AutoLivingViewModel.removeObserver"

	@parameter(1,"android.arch.lifecycle.Observer")
	def observer(self, observer):
		return self

class LoadJavascriptApiBuilder(ApiBaseBuilder):
	api_name = "com.demo.liveroom.autotest.AutoLivingViewModel.loadJavascript"

	@parameter(1,"String")
	def js(self, js):
		return self

